﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShoppingCart.aspx.cs" Inherits="SanPham_ShoppingCart" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Shopping Cart</title>
    <link type="text/css" rel="stylesheet" href="Style.css" />
    <link rel="stylesheet" type="text/css" href="../index/Webshop.css" />
    <link rel="stylesheet" type="text/css" href="../index/menubar.css" />
</head>
<body>
    <form id="form1" runat="server">

        
        <div id="Group">
            
            <img alt="Group2" src="../picture/Group2.png" />
        </div>
        <div id="Login">
                        
            <asp:Button ID="BtnLogin" runat="server" Width="102px" cssclass="login" OnClick="BtnLogin_Click" Text="Log In" Height="34px" />
                            
            <asp:Button ID="BtnLogout" runat="server" CssClass="login" OnClick="BtnLogout_Click1" Text="Log Out" Visible="False" Width="103px" Height="34px" />
            
            <asp:Button ID="BtnOrder" runat="server"   Width="103px" Text="Order" CssClass="logout" Height="34px" Visible="True" OnClick="BtnOrder_Click" />
                            
            <asp:Button ID="btnRedirect" runat="server" OnClick="btnRedirect_Click" Visible="False" Width="103px" Text="Account" CssClass="logout" Height="34px" />
            
        </div>
       
        <!------------Menubar-------------------------->
        <div id="menubar">
            <ul class="menu">

                <li><a href="../index/index.aspx">Home</a></li>
                <li><a href="../Contact/About us.aspx">Avenger team</a></li>      
                <li><a href="../Product/Product.aspx">Our Product</a></li>
                <li><a href="../Contact/Contact us.aspx">Contact</a></li>
            </ul>
        </div>
        <!------------end menubar -------------------->
 <div id="all">
        <div id="head">
            <div id="user">
                <img src="user.png" />
            </div>
        </div>
        <!------------header------------------------->
      <div id="tab">
        <div id="gridview">
            <br />
        <asp:GridView ID="gvCart" runat="server" 
              AutoGenerateColumns="False" DataKeyNames="PID">
    <Columns>
    <asp:BoundField DataField="PID" HeaderText="PID" 
                InsertVisible="False" ReadOnly="True"
                               SortExpression="PID" />
    <asp:BoundField DataField="Name" HeaderText="Name" 
                               SortExpression="Name" />
        <asp:BoundField DataField="Price" HeaderText="Price" 
                               SortExpression="Price" />
        <asp:BoundField DataField="Quantity" HeaderText="Quantity" 
                               SortExpression="Quantity" />
        
        
    </Columns>
    </asp:GridView>
    &nbsp;&nbsp;&nbsp;<br />
            &nbsp;&nbsp;<asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="Back to Product Page" CssClass="btnViewU" />
        <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="Delete Cart" CssClass="btnViewU" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
        <br />
        Sum:
        <asp:Label ID="lblSum" runat="server" EnableTheming="True"></asp:Label>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Order" CssClass="btnViewU" />
        <asp:Label ID="Label1" runat="server"></asp:Label>
            <br />
        <br />
       </div>
          </div>
     </div>
    </form>
</body>
</html>
